﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AppCode/MasterPages/Admin.master" AutoEventWireup="true" CodeFile="AddEmployee.aspx.cs" Inherits="AppCode_Admin_AddEmployee" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style1 {
            height: 22px;
        }
        .auto-style2 {
            width: 87px;
        }
        .auto-style3 {
            height: 22px;
            width: 87px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
    <div>
        <div style="width:700px;margin:0 auto;margin-left:300px;">
            <p style="margin-left:80px; font-size:19px;margin-top:40px; font-weight:bold; margin-bottom:20px;">Employee Regsiter</p>
            <table style="border-spacing:30px 10px">
                <tr>
                    <td class="auto-style2">
                        <asp:Label ID="Label1" runat="server" Text="Designation"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtDesignation" runat="server" Width="175px" style="margin-left: 0px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="    Designation is requried" ForeColor="#CC0000"></asp:Label></td>
                </tr>
                <tr>
                    <td class="auto-style2">
                        <asp:Label ID="Label3" runat="server" Text="Join Date"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtJoinDate" runat="server" Width="175px"></asp:TextBox>
                        <asp:CalendarExtender ID="txtJoinDate_CalendarExtender" runat="server" TargetControlID="txtJoinDate">
                        </asp:CalendarExtender>
                    </td>
                    <td>
                        <asp:Label ID="Label4" runat="server" Text="    Join Date is requried" ForeColor="#CC0000"></asp:Label></td>
                </tr>
                <tr>
                    <td class="auto-style2">
                        <asp:Label ID="Label5" runat="server" Text="Salary"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtSalary" runat="server" Width="175px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label6" runat="server" Text="    Salary is requried" ForeColor="#CC0000"></asp:Label>
                        <asp:Label ID="Label26" runat="server" ForeColor="#CC0000" Text="Salary must be a number"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style2">
                        <asp:Label ID="Label7" runat="server" Text="FirstName"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtFirstName" runat="server" Width="175px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label8" runat="server" Text="    FirstName is requried" ForeColor="#CC0000"></asp:Label></td>
                </tr>
                <tr>
                    <td class="auto-style2">
                        <asp:Label ID="Label9" runat="server" Text="LastName"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtLastName" runat="server" Width="175px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label10" runat="server" Text="    LastName is requried" ForeColor="#CC0000"></asp:Label></td>
                </tr>
                <tr>
                    <td class="auto-style2">
                        <asp:Label ID="Label11" runat="server" Text="UserName"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server" Width="175px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label12" runat="server" Text="    UserName is requried" ForeColor="#CC0000"></asp:Label>
                        <asp:Label ID="Label25" runat="server" Text="    UserName have been exist" ForeColor="#CC0000"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style2">
                        <asp:Label ID="Label13" runat="server" Text="Password"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtPassword" runat="server" Width="175px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label14" runat="server" Text="    Password is requried" ForeColor="#CC0000"></asp:Label></td>
                </tr>
                <tr>
                    <td class="auto-style3">
                        <asp:Label ID="Label15" runat="server" Text="Address"></asp:Label></td>
                    <td class="auto-style1">
                        <asp:TextBox ID="txtAddress" runat="server" Width="175px"></asp:TextBox></td>
                    <td class="auto-style1">
                        <asp:Label ID="Label16" runat="server" Text="    Address is requried" ForeColor="#CC0000"></asp:Label></td>
                </tr>
                <tr>
                    <td class="auto-style2">
                        <asp:Label ID="Label17" runat="server" Text="Contact No"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtContact" runat="server" Width="175px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label18" runat="server" Text="    Contact No is requried" ForeColor="#CC0000"></asp:Label>
                        <asp:Label ID="Label27" runat="server" ForeColor="#CC0000" Text="Contact No must be from 9 to 10 numbers"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">
                        <asp:Label ID="Label19" runat="server" Text="State"></asp:Label></td>
                    <td class="auto-style1">
                        <asp:TextBox ID="txtState" runat="server" Width="175px"></asp:TextBox></td>
                    <td class="auto-style1">
                        <asp:Label ID="Label20" runat="server" Text="    State is requried" ForeColor="#CC0000"></asp:Label></td>
                </tr>
                <tr>
                    <td class="auto-style2">
                        <asp:Label ID="Label21" runat="server" Text="Country"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtCountry" runat="server" Width="175px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label22" runat="server" Text="    Country is requried" ForeColor="#CC0000"></asp:Label></td>
                </tr>
                <tr>
                    <td class="auto-style2">
                        <asp:Label ID="Label23" runat="server" Text="City"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtCity" runat="server" Width="175px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label24" runat="server" Text="    City is requried" ForeColor="#CC0000"></asp:Label></td>
                </tr>
                <tr>
                    <td class="auto-style2">
                        </td>
                    <td>
                       <asp:Button ID="Button1" runat="server" Text="Add" Height="30px" Width="80px" OnClick="Button1_Click" /></td>
                </tr>
            </table>
            <p style="color:red;margin-left:80px; font-weight:bold;" runat="server" id="success" >Add employee successfully</p>
        </div>
    </div>
</asp:Content>

